class Solution(object):
    def twoSum(self, nums, target):
        Hash_num = {}
        for i in range(len(nums)):
            
            if target - nums[i] in Hash_num:
                return [Hash_num[target - nums[i]], i] 
            Hash_num[nums[i]] = i
        return [-1, -1]